Optimal. Leaf size=28 \[ \frac{B \sin (c+d x)}{d}-\frac{B \sin ^3(c+d x)}{3 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.015511, antiderivative size = 28, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 34, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.059, Rules used = {21, 2633} \[ \frac{B \sin (c+d x)}{d}-\frac{B \sin ^3(c+d x)}{3 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 21
Rule 2633
Rubi steps
\begin{align*} \int \frac{\cos ^3(c+d x) (a B+b B \cos (c+d x))}{a+b \cos (c+d x)} \, dx &=B \int \cos ^3(c+d x) \, dx\\ &=-\frac{B \operatorname{Subst}\left (\int \left (1-x^2\right ) \, dx,x,-\sin (c+d x)\right )}{d}\\ &=\frac{B \sin (c+d x)}{d}-\frac{B \sin ^3(c+d x)}{3 d}\\ \end{align*}
Mathematica [A] time = 0.0076623, size = 28, normalized size = 1. \[ B \left (\frac{\sin (c+d x)}{d}-\frac{\sin ^3(c+d x)}{3 d}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.051, size = 23, normalized size = 0.8 \begin{align*}{\frac{B \left ( 2+ \left ( \cos \left ( dx+c \right ) \right ) ^{2} \right ) \sin \left ( dx+c \right ) }{3\,d}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.79838, size = 61, normalized size = 2.18 \begin{align*} \frac{{\left (B \cos \left (d x + c\right )^{2} + 2 \, B\right )} \sin \left (d x + c\right )}{3 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 1.6412, size = 56, normalized size = 2. \begin{align*} \begin{cases} \frac{2 B \sin ^{3}{\left (c + d x \right )}}{3 d} + \frac{B \sin{\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{d} & \text{for}\: d \neq 0 \\\frac{x \left (B a + B b \cos{\left (c \right )}\right ) \cos ^{3}{\left (c \right )}}{a + b \cos{\left (c \right )}} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.47308, size = 34, normalized size = 1.21 \begin{align*} -\frac{B \sin \left (d x + c\right )^{3} - 3 \, B \sin \left (d x + c\right )}{3 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]